package com.ambulance.project.manager.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ambulance.framework.aspectj.lang.annotation.Excel;
import com.ambulance.framework.web.domain.BaseEntity;

/**
 * 调度员管理对象 biz_dispatcher
 * 
 * @author zr
 * @date 2020-05-11
 */
public class BizDispatcher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 调度员标识 */
    private Long dispatcherID;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 角色，0调度员 */
    @Excel(name = "角色，0调度员")
    private Integer role;

    /** 值班状态(0= 值班 1=未值班) */
    @Excel(name = "值班状态(0= 值班 1=未值班)")
    private Integer onDutyStatus;

    /** 所属医院 */
    @Excel(name = "所属医院")
    private String hospital;

    /** 上次登陆时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次登陆时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLogin;

    /** 登陆ip */
    @Excel(name = "登陆ip")
    private String loginIp;


    /** 医院标识 */
    @Excel(name = "医院标识")
    private Long uid;

    public void setUid(Long uid) {
        this.uid = uid;
    }

    private String accountName;

    private String password;

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    /** 账户标识 */
    @Excel(name = "账户标识")
    private Long cid;

    public void setDispatcherID(Long dispatcherID) 
    {
        this.dispatcherID = dispatcherID;
    }

    public Long getDispatcherID() 
    {
        return dispatcherID;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setRole(Integer role) 
    {
        this.role = role;
    }

    public Integer getRole() 
    {
        return role;
    }
    public void setOnDutyStatus(Integer onDutyStatus) 
    {
        this.onDutyStatus = onDutyStatus;
    }

    public Integer getOnDutyStatus() 
    {
        return onDutyStatus;
    }
    public void setHospital(String hospital) 
    {
        this.hospital = hospital;
    }

    public String getHospital() 
    {
        return hospital;
    }
    public void setLastLogin(Date lastLogin) 
    {
        this.lastLogin = lastLogin;
    }

    public Date getLastLogin() 
    {
        return lastLogin;
    }
    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp()
    {
        return loginIp;
    }


    public Long getUid() 
    {
        return uid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dispatcherID", getDispatcherID())
            .append("name", getName())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("remark", getRemark())
            .append("role", getRole())
            .append("onDutyStatus", getOnDutyStatus())
            .append("hospital", getHospital())
            .append("lastLogin", getLastLogin())
            .append("loginIp", getLoginIp())
            .append("uid", getUid())
            .append("cid", getCid())
            .toString();
    }
}
